import http from "../request";

/**
 * 请求上传作业
 */
export const requestUploadHomework = (data, onUploadProgress) => {
  return http.postForm('/apiV2/user/homeWork/uploadHomeWork', data, {
    onUploadProgress: (e) => {
      onUploadProgress(e)
    }
  })
}

// 获取token
export const getUpToken = () => {
  return http.get('/apiV2/common/oss/getUpToken')
}